<?php
/**
 *      [迷你云] (C)2009-2012 南京恒为网络科技.
 *   软件仅供研究与学习使用，如需商用，请访问www.miniyun.cn获得授权
 * 
 */
?>
<?php


class MTeam extends MModel
{
    
    public static function queryTeamByTeamId($team_id) {
        $db = MDbManager::getInstance();
        $sql = "select * from teams where id={$team_id}";
        return $db->selectDb($sql);
    }
    
    
    public static function queryTeamByDomainName($domain, $name) {
        $db = MDbManager::getInstance();
        $sql = "select * from teams where domain=\"{$domain}\" and name=\"{$name}\"";
        return $db->selectDb($sql);
    }
}
?>